home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
MCASM.RAR
/
MC_ASM.EXE
/
WROX_ASM
/
CH4
/
PROG4_4.ASM
< prev
next >
Wrap
Assembly Source File
|
1994-11-14
|
681b
|
35 lines
*********************************************************************************
Program 4.4 Crashing the Debugger by Stack Segment Overlap
*********************************************************************************
dosseg
.model large
.data
mess db 'My name is Prince',10,13,'$'
.code
mov ax,@data
mov ds,ax
mov ax,cs
cli
mov ss,ax
mov sp,offset stck
sti
call tell
mov ah,4ch
int 21h ; Terminate
db 10 dup (?) ; Reserve space for stack
stck: ; Initial stack pointer
tell proc near
lea dx,mess
mov ah,9
int 21h ; Output string
ret
tell endp
end